CC=g++
OBJ = product.o factory.o main.o
PROGS = FactoryPattern

all:${PROGS}

FactoryPattern: main.o factory.o product.o
		${CC} -g -o $@ ${OBJ}

clean:
		rm -rf *.o ${PROGS}
